<?php

namespace Database\Seeders;

use App\Models\Post;
use Illuminate\Database\Seeder;

class PostSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for ($i = 0; $i < 100; $i++){
            Post::create([
                'user_id' => 1,
                'user_name' => 'admin',
                'title' => 'title'.\Str::random(20),
                'content' => 'content' . \Str::random(100),
            ]);
        }
    }
}
